<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt"%>
<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>LOGIN</title>
	<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.1.0/css/font-awesome.min.css">
	<link rel="stylesheet prefetch" href="${pageContext.request.contextPath}/css/bootstrap/bootstrap.min.css">
	<style type="text/css">
		body{background: #9DB0D4;}
		.login-content{width: 300px; margin: 0 auto; margin-top: 200px;}
		.input-group .form-control{height: 48px;}
		
		.fa-user {
			position: relative;
    left: 10px;
    top: 31px;
		}
		.fa-key{position: relative;
    left: 10px;
    top: 31px;}
		.input-group .form-control {
    height: 35px;
    padding-left: 26px;
}

button.btn.btn-primary.btn-block.btn-login {
    width: 100px;
    height: 40px;
    margin-left: 70px;
    margin-top: 20px;
}
	</style>
</head>

<body>
	<c:if test="${msg!=null}" >
		<script type="text/javascript">
			
			alert("${msg}");
		</script>
	</c:if>
	<div class="login-content">	
	<form method="post" role="form" id="form_login" action="${pageContext.request.contextPath}/user/login.do">
				
				<!-- 用户名-->
				<div class="form-group">
					<div class="input-group">
						<div class="input-group-addon">
							<i class="fa fa-user"></i>
						</div>
						<input type="text" class="form-control" name="username" id="username" placeholder="Username" autocomplete="off" />
						
					</div>
				</div>

				<!-- 密码-->
				<div class="form-group">
					<div class="input-group">
						<div class="input-group-addon">
							<i class="fa fa-key"></i>
						</div>
						<input type="password" class="form-control" name="password" id="password" placeholder="Password" autocomplete="off" />
					</div>
				</div>

				<!-- 登录按钮-->
				<div class="form-group">
					<button type="submit" class="btn btn-primary btn-block btn-login">
						<i class="fa fa-sign-in"></i>
						登录
					</button>
				</div>	
			</form>
			</div>
			
			
</body>
</html>